from django.contrib import admin
from category.models import *

class CategoryAdmin(admin.ModelAdmin):
    list_display = ('name',)
    # search_fields = ('name',)
    # list_filter = ('name',)
    # date_hierarchy = 'publication_date'
    # ordering = ('-publication_date',)
    # fields = ('name',) # edit form
    # filter_horizontal = ('parent',) # nice select #and filter_vertical only work on ManyToManyField fields, not ForeignKey fields
    
    
admin.site.register(Category, CategoryAdmin)